<%@ include file="/common/taglibs.jsp" %>

<head>
  <title><fmt:message key="loanRequest.feedbacks.title"/></title>
  <meta name="menu" content="LoanRequestListMenu"/>
</head>

<div class="col-sm-10">
  <h2><fmt:message key="loanRequest.feedbacks.heading"/></h2>

  <display:table name="feedbackList" cellspacing="0" cellpadding="0" requestURI=""
                 defaultsort="1" defaultorder="descending" id="feedback" pagesize="25" class="table table-condensed table-striped table-hover" export="true">
    <display:column sortProperty="time" sortable="true" titleKey="loanRequest.feedback.time">
      <fmt:formatDate value="${feedback.time}" pattern="${datePattern}"/>
    </display:column>
    <display:column property="operator" titleKey="loanRequest.feedback.operator" media="csv xml excel pdf"/>
    <display:column property="content" titleKey="loanRequest.feedback.content" media="csv xml excel pdf"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="loanRequest.feedback"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="loanRequest.feedbacks"/></display:setProperty>

    <display:setProperty name="export.excel.filename" value="Feedbacks.xls"/>
    <display:setProperty name="export.csv.filename" value="Feedbacks.csv"/>
    <display:setProperty name="export.pdf.filename" value="Feedbacks.pdf"/>
  </display:table>

  <div id="actions" class="btn-group">
    <a class="btn btn-primary" href="<c:url value='/feedbackform?method=Add&from=list'/>">
      <i class="icon-plus icon-white"></i> <fmt:message key="button.add"/></a>

    <a class="btn btn-default" href="<c:url value='/loanRequests'/>">
      <i class="icon-ok"></i> <fmt:message key="button.done"/></a>
  </div>


</div>
